<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>MinEg</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <script crossorigin="anonymous" integrity="sha384-AQhQSZGQWTMJhb/TdS7NWpCmOM/8lIEsaevSU5oZtt8pQKoa+uJL4A2WnQ0O5Zj2" src="https://lib.baomitu.com/jquery/3.5.0/jquery.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>

<!--导航-->
<nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padding-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary menu stackable">
            <h2 class="ui teal header item">MinEg</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a href="types.html" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="m-item right item m-mobile-hide">
                <div class="ui icon inverted transparent input">
                    <input type="text" placeholder="搜索...">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间容器-->
<div class="m-padding-tb-big">
   <div class="ui container">
       <div class="ui grid stackable">
<!--           左边的博客列表-->
           <div class="eleven wide column">
<!--               header-->
               <div class="ui segment top attached">
                   <div class="ui middle aligned two column grid">
                       <div class="column">
                           <h3 class="ui teal header">博客</h3>
                       </div>
                       <div class="right aligned column">
                           共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.totalElements}"> 12 </h2> 篇
                       </div>
                   </div>
               </div>
<!--               content-->
               <div class="ui attached segment">
                   <div class="ui padded segment vertical m-padding-tb m-padding-lr" th:each="blog : ${page.content}">
                       <div class="ui middle aligned mobile stackable  reversed grid">
                           <div class="eleven wide column">
                               <h3 class="ui header"><a target="_blank" th:href="@{/blog/{id}(id=${blog.id})}" href="#" th:text="${blog.title}" class="m-black">Java，你真的学会了吗？</a></h3>
                               <p class="m-text" th:text="|${blog.description}......|">Java是一门面向对象编程语言，不仅吸收了C++语言的各种优点，还摒弃了C++里难以理解的多继承、指针等概念，因此Java语言具有功能强大和简单易用两个特征。Java语言作为静态面向对象编程语言的代表，极好地实现了面向对象理论，允许程序员以优雅的思维方式进行复杂的编程 [1]  。</p>
                               <div class="ui grid stackable">
                                   <div class="eleven wide column">
                                       <div class="ui mini horizontal link list">
                                           <div class="item">
                                               <img src="../static/images/header.jpg" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                               <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">何明鹏</a></div>
                                           </div>
                                           <div class="item">
                                               <i class="calendar icon"></i> <span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2019-10-01</span>
                                           </div>
                                           <div class="item">
                                               <i class="eye icon"></i> <span th:text="${blog.views}">4321</span>
                                           </div>
                                       </div>
                                   </div>
                                   <div class="right aligned five wide column">
                                       <a href="#" target="_blank" class="ui teal basic label m-padding-tiny" th:text="${blog.type.name}">认知升级</a>
                                   </div>
                               </div>
                           </div>
                           <div class="five wide column">
                               <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                   <img src="http://iph.href.lu/800x450" th:src="@{${blog.firstPicture}}" class="ui rounded image" alt="">
                               </a>
                           </div>
                       </div>
                   </div>
               </div>
<!--               footer-->
               <div class="ui segment bottom attached" th:if="${page.totalPages}>1">
                   <div class="ui middle aligned two column grid" >
                       <div class="column">
                           <a href="#" th:href="@{/(page=${page.number-1})}" class="ui teal mini basic button" th:unless="${page.first}">上一页</a>
                       </div>
                       <div class="right aligned column">
                           <a href="#" th:href="@{/(page=${page.number+1})}" class="ui teal mini basic button" th:unless="${page.last}">下一页</a>
                       </div>
                   </div>
               </div>
           </div>
<!--           右边的top-->
           <div class="five wide column">
<!--               分类-->
               <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="column right aligned">
                                <a href="#" target="_blank" th:href="@{/types/-1}">more</a> <i class="angle double right icon"></i>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <a th:href="@{/types/{id}(id=${type.id})}" href="#" class="item" th:each="type : ${types}">
                                <span th:text="${type.name}">学习日志</span>
                                <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blogs)}">13</div>
                            </a>
                            <!--/*-->
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <a href="#" class="item">
                                学习日志
                                <div class="ui teal basic left pointing label">13</div>
                            </a>
                            <!--*/-->
                        </div>
                    </div>

                </div>
<!--               标签-->
               <div class="ui segments m-margin-large">
                   <div class="ui secondary segment">
                       <div class="ui two column grid">
                           <div class="column">
                               <i class="tags icon"></i>标签
                           </div>
                           <div class="column right aligned">
                               <a href="#"target="_blank" th:href="@{tags/-1}">more</a> <i class="angle double right icon"></i>
                           </div>
                       </div>
                   </div>
                   <div class="ui teal segment">
                       <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny" th:each="tag : ${tags}">
                           <span th:text="${tag.name}">方法论</span> <div class="detail" th:text="${#arrays.length(tag.blogs)}">23</div>
                       </a>
                       <!--/*-->
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-tiny">
                           方法论 <div class="detail">23</div>
                       </a>
                       <!--*/-->
                   </div>
               </div>
               <!--               最新推荐-->
               <div class="ui segments m-margin-large">
                   <div class="ui secondary segment">
                       <i class="bookmark icon"></i>最新推荐
                   </div>
                   <div class="ui segment" th:each="blog : ${recommendBlogs}">
                       <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black m-text-thin" th:text="${blog.title}">用户故事（User Story）</a>
                   </div>
                   <!--/*-->
                   <div class="ui segment">
                       <a href="#" target="_blank" class="m-black m-text-thin">用户故事（User Story）</a>
                   </div>
                   <div class="ui segment">
                       <a href="#" target="_blank" class="m-black m-text-thin">用户故事（User Story）</a>
                   </div>
                   <div class="ui segment">
                       <a href="#" target="_blank" class="m-black m-text-thin">用户故事（User Story）</a>
                   </div>
                   <div class="ui segment">
                       <a href="#" target="_blank" class="m-black m-text-thin">用户故事（User Story）</a>
                   </div>
                   <!--*/-->
               </div>
<!--               关注我-->
<!--               <h4 class="ui horizontal divider header m-margin-large">扫码关注我</h4>-->
<!--               <div class="ui centered card" style="width: 11em">-->
<!--                   <img src="../static/images/wx.jpg" th:src="@{/images/wx.jpg}" alt="" class="ui rounded image">-->
<!--               </div>-->
           </div>
       </div>
   </div>
</div>
<br>
<br>
<!--底部footer-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padding-tb-massive">
    <div class="ui center aligned container">
        <div class="ui grid divided stackable inverted">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wx.jpg" alt="" class="ui rounded image" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事（User Story）</a>
                    <a href="#" class="item">用户故事（User Story）</a>
                    <a href="#" class="item">用户故事（User Story）</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Email：2228960454@qq.com</a>
                    <a href="#" class="item">QQ：2228960454</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">Blog</h4>
                <p>这是我的个人博客、会分享关于编程、写作、思考相关的任何内容，希望可以给来到这儿的人有所帮助...</p>
            </div>
        </div>
         <div class="ui inverted section divider"></div>
         <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright o 2016-2017 peng Designed by peng</p>
    </div>
</footer>

<!--------script-------->

<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<!--/*/</th:block>/*/-->
<script>
    $(".menu.toggle").click(function () {
        $(".m-item").toggleClass("m-mobile-hide")
    })
</script>
</body>
</html>